package org.linloong.core.result;

/**
 * @author ruanbh
 * @date 2022/5/23 14:18
 */
public enum ResultEnum {

    VALID_FAIL(2000, "参数校验失败"),
    INV_FAIL(2001, "注册码无效"),
    NOT_LOGIN(2002, "未登录"),

    SUCCESS(200, "请求成功"),
    NOT_FOUND(404, "请求找不到"),
    FAIL(500, "请求失败");

    ResultEnum() {
    }

    ResultEnum(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    private Integer code;
    private String msg;

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
